﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace abpAngular.DataDictionary
{
    [Table("Base.DictionaryValue")]
    public class DictionaryValue : FullAuditedEntity<int>, IMayHaveTenant
    {
        [Required]
        [MaxLength(50)]
        public string Name { get; set; }

        [Required]
        [MaxLength(50)]
        public string DValue { get; set; }

        public int SortCode { get; set; }

        public int DictionaryItemId { get; set; }

        public virtual DictionaryItem DictionaryItem { get; set; }
        public int? TenantId { get; set; }
    }
}
